package com.testmanager.testmananger.zyyc.interTest.mapper;

import com.testmanager.testmananger.zyyc.interTest.domain.SuiteResultEntity;
import com.testmanager.testmananger.zyyc.interTest.dto.SuiteResultDto;

/**
 * @description:
 * @author: 何森存
 * @time: 2021/7/23 下午2:13
 */
public class SuiteResultMapper {


//
//    private long id;
//    private long no;
//    private long projectNo;
//    private String suiteName;
//    private String testName;
//    private int staus;
//    private int conutNum;
//    private int success;
//    private int fail;
//    private int skip;
//    private double successPercent;
//    private LocalDateTime startTime;
//    private LocalDateTime endTime;
    public static SuiteResultDto toSuiteResultDto(SuiteResultEntity entity){


        return new SuiteResultDto()
                .setId(entity.getId())
                .setNo(entity.getNo())
                .setProjectNo(entity.getProjectNo())
                .setSuiteName(entity.getSuiteName())
                .setTestName(entity.getTestName())
                .setStaus(entity.getStaus())
                .setConutNum(entity.getConutNum())
                .setSuccess(entity.getSuccess())
                .setFail(entity.getFail())
                .setSkip(entity.getSkip())
                .setSuccessPercent(0L)
                .setStartTime(entity.getStartTime())

                .setEndTime(entity.getEndTime());

    }
}
